/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package corejava;

/**
 *
 * @author sangnv
 */
public class IncomTaxCalculator {
    
    public float calIncomTax(double income) {
        float incomeTax = 0;
        if(income > 5000 && income <=10000) 
            incomeTax = (float) (income * 0.05);
        else if(income >=20000) {
            incomeTax = (float) (income*0.1);
        }
        return incomeTax;
    }
}
